package com.beidouapp.domain.pojo;

import java.io.Serializable;
import java.util.Date;

import org.hibernate.validator.constraints.NotBlank;

import com.beidouapp.domain.annotation.TranslateField;
import com.beidouapp.translate.Translatable;

/**
 * 组织机构对象
 */
public class Organization extends Domain implements  Translatable, Serializable {
    private static final long serialVersionUID = 4738852726250882030L;

    private Long id;

    /**
     * name
     */
    @NotBlank(message = "{Organization.name.notNull}")
    private String name;

    /**
     * owner identity
     */
    private Long parentId;

    /**
     * code
     */
    private String code;

    /**
     * address
     */
    // @NotBlank(message = "{Organization.address.notNull}")
    private String address;

    /**
     * phone
     */
    // @NotBlank(message = "{Organization.phone.notNull}")
    private String phone;//联系电话.
    private String pinyinCode;
    private String wubiCode;
    private String supervisor;
    private String organizationTypeCode;
    
    @TranslateField(translatorName = "provinceTranslator",targetFieldName="provinceName")
    private String provinceCode;// 省编码
    private String provinceName;// 省名称
    
    @TranslateField(translatorName = "cityTranslator",targetFieldName="cityName")
    private String cityCode;// 市编码
    private String cityName;// 市名称
    
    @TranslateField(translatorName = "districtTranslator",targetFieldName="districtName")
    private String districtCode;// 区编码
    private String districtName;// 区名称
    private String enable;// 禁用与启用
    private Integer userIndex; // 排序序号
    private String shortName; //机构简称.
    private String licNum; //经营许可证编号.
    private Date liceTime; //经营许可日期.
    private String business; //营业执照注册号.
    private String creditCode; //统一社会信用代码.
    private String legal; //法人代表.
    private String contact; //联系人.
    private String postCode; //邮政编码


    public Organization() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPinyinCode() {
        return pinyinCode;
    }

    public void setPinyinCode(String pinyinCode) {
        this.pinyinCode = pinyinCode;
    }

    public String getWubiCode() {
        return wubiCode;
    }

    public void setWubiCode(String wubiCode) {
        this.wubiCode = wubiCode;
    }

    public String getSupervisor() {
        return supervisor;
    }

    public void setSupervisor(String supervisor) {
        this.supervisor = supervisor;
    }

    public String getOrganizationTypeCode() {
        return organizationTypeCode;
    }

    public void setOrganizationTypeCode(String organizationTypeCode) {
        this.organizationTypeCode = organizationTypeCode;
    }

    public String getProvinceCode() {
        return provinceCode;
    }

    public void setProvinceCode(String provinceCode) {
        this.provinceCode = provinceCode;
    }

    public String getCityCode() {
        return cityCode;
    }

    public Date getLiceTime() {
		return liceTime;
	}

	public void setLiceTime(Date liceTime) {
		this.liceTime = liceTime;
	}

	public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }

    public String getDistrictCode() {
        return districtCode;
    }

    public void setDistrictCode(String districtCode) {
        this.districtCode = districtCode;
    }

    public String getEnable() {
        return enable;
    }

    public void setEnable(String enable) {
        this.enable = enable;
    }

    public Integer getUserIndex() {
        return userIndex;
    }

    public void setUserIndex(Integer userIndex) {
        this.userIndex = userIndex;
    }

    public String getShortName() {
        return shortName;
    }

    public void setShortName(String shortName) {
        this.shortName = shortName;
    }

    public String getLicNum() {
        return licNum;
    }

    public void setLicNum(String licNum) {
        this.licNum = licNum;
    }



    public String getBusiness() {
        return business;
    }

    public void setBusiness(String business) {
        this.business = business;
    }

    public String getCreditCode() {
        return creditCode;
    }

    public void setCreditCode(String creditCode) {
        this.creditCode = creditCode;
    }

    public String getLegal() {
        return legal;
    }

    public void setLegal(String legal) {
        this.legal = legal;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getPostCode() {
        return postCode;
    }

    public void setPostCode(String postCode) {
        this.postCode = postCode;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getDistrictName() {
        return districtName;
    }

    public void setDistrictName(String districtName) {
        this.districtName = districtName;
    }
}
